package command;

/**
 * 接收者、计算器然后对命令进行执行
 */
public class Receiver {

    private int num = 0;

    public int add(int value) {
        num = num + value;
        return num;
    }

    public int muti(int value) {
        num = num * value;
        return num;
    }
}
